package test;

import day6.people;

public class testpeople {
    public static void main(String[] args) {
        people p = new people();
        S d = new S();
        System.out.println(p.name);
//        System.out.println(p.sex);
//        System.out.println(p.age);
//        System.out.println(p.money);
        System.out.println(d.name);
//        System.out.println(d.money);
//        System.out.println(d.sex);
    }
}
//子类继承people父类：子类就可以使用父类的非私有资源
class S  extends people{

}
